package com.chaopei.runable;

/**
 * @Author Corday 天涯
 * @Date 2022/3/14 15:57
 * 这里是主类，也称为主线程类
 */
public class RunableMain {
    public static void main(String[] args) {
        //创建实现接口的对象,用于共享数据
        MyRunnable mr = new MyRunnable();
        Thread th1 = new Thread(mr);
        Thread th2 = new Thread(mr);
        Thread th3 = new Thread(mr);
        th1.start();
        th2.start();
        th3.start();
//        new Thread(mr,"窗口1").start();
//        new Thread(mr,"窗口1").start();
//        new Thread(mr,"窗口1").start();
    }
}
